package cn.edu.scau.sec.caixiaoqing.composite.securitycomposite;

import cn.edu.scau.sec.caixiaoqing.composite.FourMixedOperations;

public class AtomSecurityTestCase implements SecurityTestCase {
    private int expected;
    private int fact;

    public AtomSecurityTestCase(int a, int b, int expected){
        this.fact = new FourMixedOperations().add(a, b);
        this.expected = expected;
    }

    @Override
    public boolean test() {
        System.out.println("期望值："+ this.expected +" "+ "实际值：" + this.fact);
        return this.fact==this.expected;
    }
}
